package com.powernode.controller;

import com.powernode.dao.SysUserDao;
import com.powernode.entity.SysUser;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SysUserController {
    @Resource
    private SysUserDao sysUserDao;


    @GetMapping("/users")
    public SysUser getByUserName() {
        SysUser sysUser = sysUserDao.getByUserName("obama");
        return sysUser;
    }

}
